from open_ai_model import getOpenAiModel

model = getOpenAiModel()
chunks = []
for chunk in model.stream("天空是什么颜色？答案控制在20个字以内。"):
    chunks.append(chunk.content)
    print(chunk.content, end="|", flush=True)

print("\n拼接后的答案：")
print("".join(chunks))
